/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

// test


package BusinessLayer;

import java.util.logging.Level;
import java.util.logging.Logger;
import javax.xml.bind.JAXBException;

/**
 *
 * @author zorr
 */
public class BLInterfaceHandler implements BusinessLayerInterface {

    @Override
    public String getGameList(String username, String pwd) {
        try {
            return Transform.createDocument_getGameList(username, pwd);
        } catch (JAXBException ex) {
            Logger.getLogger(BLInterfaceHandler.class.getName()).log(Level.SEVERE, null, ex);
        }
        return null;
    }

    @Override
    public String buyGame(String username, int gameId) {
        try {
            return Transform.createDocument_buyGame();
        } catch (JAXBException ex) {
            Logger.getLogger(BLInterfaceHandler.class.getName()).log(Level.SEVERE, null, ex);
        }
        return null;
    }

    @Override
    public String getMyGames(String username) {
        try {
            return Transform.createDocument_getMyGames(username);
        } catch (JAXBException ex) {
            Logger.getLogger(BLInterfaceHandler.class.getName()).log(Level.SEVERE, null, ex);
        }
        return null;
    }

    @Override
    public String getLicense(String username, int gameId) {
        try {
            return Transform.createDocument_getLicense(username, gameId);
        } catch (JAXBException ex) {
            Logger.getLogger(BLInterfaceHandler.class.getName()).log(Level.SEVERE, null, ex);
        }
        return null;
    }

    @Override
    public String getGame(String username, int gameId) {
        try {
            return Transform.createDocument_getGame(username, gameId);
        } catch (JAXBException ex) {
            Logger.getLogger(BLInterfaceHandler.class.getName()).log(Level.SEVERE, null, ex);
        }
        return null;
    }
    
}
